package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * activityGoods对象 activity_goods
 * 
 * @author ruoyi
 * @date 2022-11-02
 */
public class ActivityGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 库存id */
    @Excel(name = "库存id")
    private Long goodsId;

    /** 秒杀价 */
    @Excel(name = "秒杀价")
    private String seckillPrice;

    /** 秒杀数量 */
    @Excel(name = "秒杀数量")
    private Long seckillNum;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd'T'HH:MM:SS")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd'T'HH:MM:SS")
    private Date endTime;


    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(String seckillPrice) {
        this.seckillPrice = seckillPrice;
    }

    public Long getSeckillNum() {
        return seckillNum;
    }

    public void setSeckillNum(Long seckillNum) {
        this.seckillNum = seckillNum;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("seckillPrice", getSeckillPrice())
            .append("seckillNum", getSeckillNum())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("name",getName())
            .toString();
    }
}
